package com.kun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author SunKun
 * @since 2021-06-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="BlogType对象", description="")
public class BlogType implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "博客分类编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "博客分类名称")
    @TableField("typeName")
    private String typeName;

    @ApiModelProperty(value = "博客优先级排序")
    @TableField("orderNo")
    private Integer orderNo;

    //博客类型的数量(数据库不存在)
    @TableField(exist = false)
    private Integer blogCount; //变量名与SQL语句别名一致！
}
